import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import permission from './directive/permission' //自定义指令

import '@/permission' // permission control

Vue.use(Element, {
	size: 'medium', // set element-ui default size
})

Vue.use(permission)

Vue.config.productionTip = false

Vue.prototype.$$router = router

new Vue({
	router,
	store,
	render: (h) => h(App),
}).$mount('#app')
